#pragma once
#include <QMap>
#include <QWidget>
QT_BEGIN_NAMESPACE
namespace Ui { class PipelineManagerWid; };
QT_END_NAMESPACE


class TaskProcess;
class PipelineInfoWid;
class Pipeline;
enum class PipelineTaskState;

class PipelineManagerWid : public QWidget
{
	Q_OBJECT

public:
	PipelineManagerWid(QWidget* parent = nullptr);
	~PipelineManagerWid();

	void UpdatePipeTable();
private:
	void SetPipelineState(int i, PipelineTaskState state);

private slots:
	void on_tableWidget_cellPressed(int row, int colum);
private:
	Ui::PipelineManagerWid* ui;
	TaskProcess* m_task = nullptr;
	QList<Pipeline*> m_pipes;
	QList<PipelineInfoWid*> m_wids;
};
